package com.its.us.sk.server.tcp.base;

import io.netty.buffer.ByteBuf;
import io.netty.channel.Channel;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @Author: master
 * @Date: 2020/11/28 16:39
 * @Version: 1.0
 */
public abstract class BaseTcpHandler extends SimpleChannelInboundHandler<ByteBuf> {

    /**
     * 单通道发送
     * @param channel
     * @param byteBuf
     */
    public static final void send(Channel channel, ByteBuf byteBuf) {
        channel.writeAndFlush(byteBuf);
    }
}
